import { CoolController, BaseController } from '@cool-midway/core';
import { Body, Inject, Post, Get, Query } from '@midwayjs/core';
import { GoldTypeListEntity } from '../../entity/list'; 
import { GoldTypeListService } from '../../service/list'; 

/**
 * gold模块-类型列表
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: GoldTypeListEntity,
  service: GoldTypeListService,
  pageQueryOp: {
    keyWordLikeFields: ['name'],
    fieldEq: ['amount', 'gold'],
  }
})
export class AdminGoldTypeListController extends BaseController {
    @Inject()
    goldTypeListService: GoldTypeListService;
}
